<include file="Public:header" />
<a href="{:U('/Brand/add/')}">添加品牌</a>
<a href="{:U('/Brand/search')}">搜索品牌</a>
<table>
	<tr>
    	<th>编号</th>
    	<td>首字母</td>
        <th>属性</th>
        <th>中文名称</th>
        <th>英文名称</th>
        <th>宣传图</th>
        <th>logo</th>
        <th>操作</th>
    </tr>
    <foreach name="brand" item="b" >
    <tr>
    	<td>{$b.id}</td>
    	<td>{$b.initials}</td>
        <td>{$b.name}</td>
        <td>{$b.name}</td>
        <td>{$b.ename}</td>
        <td><a href="{:U('/Slide/brand/bid')}/{$b.id}">{$b.count}</a></td>
        <td><if condition="$b['small_image_url']"><img src="{$b.small_image_url}"/><else />无</if></td>
        <td>
        	<a href="{:U('Brand/edit/id')}/{$b.id}">编辑</a> |
        	<a href="{:U('Brand/small/id')}/{$b.id}">小Logo</a> |
            <a href="{:U('Brand/png/id')}/{$b.id}">小png</a>
        </td>
    </tr>
    </foreach>
    <tr>
    	<td colspan="8">
    		{$page}
    	</td>
    </tr>
</table>
<include file="Public:footer" />